package cn.good.biz.service;

import cn.good.mapper.AnswerMapper;
import cn.good.pojo.Answer;
import cn.good.service.AnswerService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Service(interfaceClass = AnswerService.class)
@Component
public class AnswerServiceImpl implements AnswerService {

    @Resource
    private AnswerMapper answerMapper;

    @Override
    public List<Answer> serchListById(Long id) {

        return answerMapper.selectListByIssueId(id);
    }
}
